CC=gcc
CFLAGS=-c -v -O2 -Wall `pkg-config gtk+-2.0 --cflags`
LDFLAGS=-s `pkg-config gtk+-2.0 --libs`
SOURCES=config.c connect.c main.c
OBJECTS=${SOURCES:.c=.o}
EXECUTABLE=gSpeedyAlert

all: ${SOURCES} ${EXECUTABLE}

${EXECUTABLE}: ${OBJECTS}
	${CC} ${LDFLAGS} ${OBJECTS} -o $@

clean:
	rm -rf *.o

.c.o:
	${CC} ${CFLAGS} $< -o $@

